﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("1、猫；2、燕子；3、老鹰；4、老虎");
            int a = int.Parse(Console.ReadLine());
            animal animal= new car();
            car bb = new car();
            switch (a)
            {
                case 1:
                    break;
                    animal = new car();
                case 2:
                    animal = new eagle();
                    break;
                case 3:
                    animal = new swallow();
                    break;
                case 4:
                    animal = new tiger();
                    
                    break;
                default:
                    animal = new car();
                    Console.WriteLine("默认为猫");
                    break;
            }
            PetStore pet = new PetStore();
            pet.aaa(animal);


        }
    }
}
